package users;

import java.util.Vector;

public class Group {
	
	private String name; 
	private Vector<User> users;
	
	
	public Group(String name) {
		this.name = name;
		this.users = new Vector<User>();
	}
	
	public boolean addUser(User user) {
		return this.users.add(user);
	}
	
	public String getName() {
		return name;
	}
	
	public Vector<User> getUsers() {
		return users;
	}

	public boolean hasUser(User user) {
		return users.contains(user);
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public void setUsers(Vector<User> users) {
		this.users = users;
	}

}
